 //大厦
	var entry_obj={
		show:function(p_city_obj,p_district_obj){
			district_obj.hide();
			$(".city_fr").hide();
			$(".select_fr").hide();
			$("[data-obj='select_district']").hide();
			$(".search-area").css({"opacity": "0", "visibility": "hidden"});
			//设置当前数据
			$(".entry_fr").show(function(){
				$("#backto_step1",this).unbind().click(function(){
					entry_obj.hide();
				});
				var t_content=p_city_obj.text()+"<em>·</em>"+p_district_obj.text()+"<em>·</em>请选择大厦";
				//alert(t_content);
				var data=["d","g","h","j","s"];
				var str=entry_obj.entryAzHtml(data);
				$(".azgroup",this).html("").append(str).show();
				data=[{"id":1,"sn":"d","name":"第一商城"},
						{"id":2,"sn":"d","name":"东方梅地亚大厦"},
						{"id":3,"sn":"g","name":"光华大厦"},
						{"id":4,"sn":"g","name":"光华欣居"},
						{"id":5,"sn":"h","name":"海航实业"},
						{"id":6,"sn":"h","name":"和乔大厦"},
						{"id":7,"sn":"h","name":"红星大厦"},
						{"id":8,"sn":"h","name":"华贸公寓"},
						{"id":9,"sn":"j","name":"金地国际花园"},
						{"id":10,"sn":"j","name":"金地中心"},
						{"id":11,"sn":"j","name":"京汇大厦"},
						{"id":12,"sn":"s","name":"盛世嘉园"},
						{"id":13,"sn":"s","name":"世茂大厦"},
						{"id":14,"sn":"s","name":"SOHO公寓"}];
				str=entry_obj.MyEntryConHtml(data);
				//alert(str);
				$("#entry_con",this).html("").append(str).show();
				
				$(".azgroup>a").unbind().bind("click",function(){
					var t_val=$(this);
					$(".azgroup>a").each(function(){
						if(t_val.html()==$(this).html()){
							$(this).addClass("active");
						}else{
							$(this).removeClass("active");
						}
					});
					//enty
					var data_val=t_val.attr("data-val");
					
					$("#entry_con>li").each(function(){
						
						if(data_val=="0"){
							$(this).show();
						}else{
							$(this).hide();
							if($(this).attr("data-sn")==data_val){
								$(this).show();
							}
						}
					
					});
					
					
				});
			});

		},
		hide:function(){
			$(".entry_fr").hide();
			$(".search-area").css({"opacity": "0", "visibility": "hidden"});
			$(".city_fr").show();
			$(".select_fr").show();
			$("[data-obj='select_district']").show();
			district_obj.show();
		},
		entryAzHtml:function(p_data) {
			var e = '<a class="all active" data-val="0" href="javascript:;">全部</a>';
			$.each(p_data,function(h, g) {
				e += '<a class="com" data-val="' + g + '" href="javascript:;">' + g.toLocaleUpperCase() + "</a>"
			});
			return e
		},
		MyEntryConHtml:function(p_data) {
			var e = "";
			$.each(p_data,function(h, g) {
						e += '<li data-sn="' + g.sn + '"><a href="'  + "/areaindex.html?id=" + g.id + '" title="' + g.name + '" class="entry_by_my_entry">' + g.name + '</a><i class="icon-trash"></i></li>'
					
			});
			return e;
		}
	};
	//商圈
	var district_obj={
		show:function(p_city_obj){
			$(".select_fr").filter(function(){
				$(window).resize();
				$("[data-obj='select_district']").show()
				.find("a").unbind().bind("click",function(){
					district_obj.hide();
					entry_obj.show(p_city_obj,$(this));
				});
			
			});
		},
		hide:function(){
			$("[data-obj='select_district']").hide();
		}
	};